package edu.suda.xsap.mapper;

import edu.suda.xsap.dto.MemberBindRecordDto;
import edu.suda.xsap.entity.Member;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MemberMapper {

    void save(Member member);

    /**
     * 根据会员ID删除会员卡绑定信息
     * @param memberId 会员的唯一标识符
     */
    void deleteBind(Long memberId);

    void delete(Long id);

    List<Member> findAll();

    Member findById(Long id);

    //绑卡：操作bind表
//    void bindCard(Integer memberId, Integer cardId);
//    void bindCard(@Param("memberId") Integer memberId, @Param("cardId") Integer cardId);
    void bindCard(MemberBindRecordDto memberBindRecordDto);


}
